package com.example.order.Controller;

import com.example.order.Model.Order;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @GetMapping("/order/{id}")
    public String findOrderById(@PathVariable String id) {
        System.out.println("7900");
        Order order = new Order();
        order.setId("123");
        order.setPrice(23.5);
        order.setReceiverAddress("河南");
        order.setReceiverName("张三");
        order.setReceiverPhone("110");
        return order.toString();
    }
}
